home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / include / RCS / dixstruct.h,v < prev    next >
Encoding:
Text File  |  1990-02-15  |  2.8 KB  |  109 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.02.14.16.17.13;  author tve;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Original X11R4 distribution
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @
  27. /***********************************************************
  28. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  29. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  30.  
  31.                         All Rights Reserved
  32.  
  33. Permission to use, copy, modify, and distribute this software and its 
  34. documentation for any purpose and without fee is hereby granted, 
  35. provided that the above copyright notice appear in all copies and that
  36. both that copyright notice and this permission notice appear in 
  37. supporting documentation, and that the names of Digital or MIT not be
  38. used in advertising or publicity pertaining to distribution of the
  39. software without specific, written prior permission.  
  40.  
  41. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  42. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  43. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  44. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  45. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  46. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  47. SOFTWARE.
  48.  
  49. ******************************************************************/
  50. /* $XConsortium: dixstruct.h,v 1.14 89/07/03 16:37:22 rws Exp $ */
  51. #ifndef DIXSTRUCT_H
  52. #define DIXSTRUCT_H
  53.  
  54. #include "dix.h"
  55. #include "resource.h"
  56. #include "cursor.h"
  57. #include "gc.h"
  58. #include "pixmap.h"
  59.  
  60. /*
  61.  *     direct-mapped hash table, used by resource manager to store
  62.  *      translation from client ids to server addresses.
  63.  */
  64.  
  65. typedef struct _TimeStamp {
  66.     unsigned long    months;            /* really ~49.7 days */
  67.     unsigned long    milliseconds;
  68. } TimeStamp;
  69.  
  70. #ifdef DEBUG
  71. #define MAX_REQUEST_LOG 100
  72. #endif
  73.  
  74. typedef struct _Client {
  75.     int index;
  76.     Mask clientAsMask;
  77.     pointer requestBuffer;
  78.     pointer osPrivate;            /* for OS layer, including scheduler */
  79.     Bool swapped;
  80.     void (* pSwapReplyFunc)();        
  81.     XID    errorValue;
  82.     int sequence;
  83.     int closeDownMode;
  84.     int clientGone;
  85.     int noClientException;       /* this client died or needs to be killed*/
  86.     DrawablePtr lastDrawable;
  87.     Drawable lastDrawableID;
  88.     GCPtr lastGC;
  89.     GContext lastGCID;    
  90.     pointer *saveSet;
  91.     int numSaved;
  92.     pointer screenPrivate[MAXSCREENS];
  93.     int (**requestVector)();
  94. #ifdef DEBUG
  95.     unsigned char requestLog[MAX_REQUEST_LOG];
  96.     int requestLogIndex;
  97. #endif
  98. } ClientRec;
  99.  
  100. extern TimeStamp currentTime;
  101. extern void CloseDownClient();
  102.  
  103. extern TimeStamp ClientTimeToServerTime();
  104. extern void UpdateCurrentTime();
  105. extern void UpdateCurrentTimeIf();
  106.  
  107. #endif /* DIXSTRUCT_H */
  108. @
  109.